//
//  MWColorView.h
//  XiRan-iOS
//
//  Created by Richfit on 2019/10/18.
//  Copyright © 2019 Wood. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class MWColorView;
@protocol MWColorViewDelegate <NSObject>

- (void)colorViewDismiss;
- (void)colorView:(MWColorView *)colorView didSelectRowAtPosition:(NSInteger)position;

@end

@interface MWColorView : UIView

@property(nonatomic, weak) id<MWColorViewDelegate> delegate;

- (instancetype)initWithTitles:(NSArray *)titles colors:(NSArray *)colors;
- (void)show;
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
